<template>
  <div>
    <video-intro :wordData="works"></video-intro>
    <comment-list type="Works" :object="works._id"></comment-list>
  </div>
</template>

<script>
export default {
  components: {
    CommentList: () => import('@/components/comment/CommentList'),
    VideoIntro: () => import('@/components/comment/VideoIntro'),
  },

  async asyncData({params, $axios}){
    const { id } = params
    const works = await $axios.$get(`works/${id}`)
    return{
        works,
    }
  },

}
</script>

<style>

</style>